package demo508;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class Test {
    public static void main(String[] args) throws IOException{
        String date ="劳动节快乐";
        FileOutputStream fileOutputStream = new FileOutputStream("1.html");
        byte []bytes = date.getBytes();
        fileOutputStream.write(bytes);
    }
}
